%html
  %head
    %title Маршрутки Оренбурга
    =javascript_include_tag "http://api-maps.yandex.ru/2.0-stable/?load=package.full&lang=ru-RU"
    =javascript_include_tag "/js/jquery/jquery-1.8.1"
    =stylesheet_link_tag "/stylesheets/style.css"
  %body
    #wrapper
      #content
        #head-wrapper
          #head
            =render :partial => "/partials/header"
        #center-wrapper
          #left_column
            =render :partial => "/partials/left_menu"
          #center
            =yield
          #right_column
            -if current_user
              #user-bar-greeting
                Вы авторизованы
                #user-bar-action
                  = link_to "Выйти", logout_path, { :title => "Выйти" }
                  =render :partial => "/partials/userbar"
            -else
              #user-bar-action
              = link_to "Войти",  login_path,  { :title => "Войти" }
        #footer-wrapper
          #footer
            Подвал
